TGML Path Element
Path represents the outline of a shape.
The path is described by the PathData attribute, which can contain moveto, line, curve (both cubic and quadratic Beziers), arc, and closepath instructions.
The path element is an implementation of the SVG path data specification. For more information, see the Scalable Vector Graphics (SVG) 1.1 Specification.
Attribute | Type | Description |
---|---|---|
Fill |
Brush |
Specifies how the interior of the shape is painted. |
Opacity |
Double |
A value between "0.0" (transparent) and "1.0" (opaque) |
PathData |
String |
SVG path data. |
Stroke |
Brush |
Describes how the line is painted. |
StrokeDashArray |
Array of Double |
The pattern of dashes and gaps used to outline shapes: |
StrokeWidth |
Double |
The width of the outline of a line. |
Visibility | Visibility |
Specifies if the element is visible or not. |
Remarks
Some of the path commands can be converted or replaced when you import SVG paths. For example, h, H (Horizontal lineto) and v, V (Vertical lineto) can be replaced with l and L (lineto).